/** 查询字典值管理列表 */
export function listDictDataApi(query: DictDataRecord): Promise<ApiRowsRecord<DictDataRecord[]>> {
  return request({
    url: `system/dict/data/list`,
    method: 'get',
    params: query
  });
}

/** 查询字典值管理详细 */
export function getDictDataApi(id: number): Promise<ApiDataRecord<DictDataRecord>> {
  return request({
    url: `system/dict/data/${id}`,
    method: 'get'
  });
}

/** 新增字典值管理 */
export function addDictDataApi(data: DictDataRecord): Promise<ApiRecord> {
  return request({
    url: "system/dict/data",
    method: 'post',
    data: data
  });
}

/** 修改字典值管理 */
export function updateDictDataApi(data: DictDataRecord): Promise<ApiRecord> {
  return request({
    url: "system/dict/data",
    method: 'put',
    data: data
  });
}

/** 删除字典值管理 */
export function delDictDataApi(id: number[]) {
  return request({
    url: `system/dict/data/${id}`,
    method: 'delete',
  });
}